<?php

use yii\helpers\Html;
use kartik\form\ActiveForm;
use kartik\select2\Select2;
use yii\helpers\ArrayHelper;
use common\models\DepotPosition;
use common\models\Depot;


/* @var $this yii\web\View */
/* @var $model common\models\DepotPosition */

$this->title = '批量生成';
$this->params['breadcrumbs'][] = ['label' => 'Depot Positions', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="depot-position-create">

   
   
<div class="box box-primary">
    <div class="box-body">
    <?php $form = ActiveForm::begin(); ?>
 <?= $form->field($model, 'depot_id')->widget(Select2::className(),[
        'options' => ['placeholder' => '请选择仓库'],
        'data'=>ArrayHelper::map(Depot::find()->all(),'id', 'name')
    ])->label('仓库') ?>
    <?= $form->field($model, 'sn')->textInput(['maxlength' => true]) ?>

   
    <?= $form->field($model, 'num')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'begin')->textInput(['maxlength' => true]) ?> 
 
    <div class="form-group">
        <?= Html::submitButton( '批量生成', ['class' => 'btn btn-primary btn-flat']) ?>
    </div>
    <?php ActiveForm::end(); ?>
    </div>
</div>
   
</div>

